/*
 * QCalAuthRetriever.h
 *
 *  Created on: May 20, 2010
 *      Author: deroy2
 */

#ifndef QCALAUTHRETRIEVER_H_
#define QCALAUTHRETRIEVER_H_

#include <QtGui/QMainWindow>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QtNetwork/QAuthenticator>
#include <QMessageBox>
#include "QCalEventRetriever.h"

class QMessageBox ;

class QCalAuthRetriever : public QObject 
{
	Q_OBJECT
public:
	QCalAuthRetriever(QWidget *parent = 0);
    ~QCalAuthRetriever();
   void load(const QString& url,const QString& name,const QString& pass);

    
public slots:
 
    void close();
    void downloadCompleted(QNetworkReply*);
    void error(QNetworkReply::NetworkError aErr);
Q_SIGNALS:
       void downloadCompleted(); 
private:
   
    QNetworkAccessManager* manager;
    QMessageBox msgBox;
    QString Lname;
    QString LPassWord;
    QCalEventRetriever * upldr;
    

};



#endif /* QCALAUTHRETRIEVER_H_ */
